package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.CompanyEmployeeDelegate;
import ae.pcfc.cldos.online.common.facade.CompanyEmployeeFacade;
import ae.pcfc.cldos.online.common.vo.UserVO;
import ae.pcfc.cldos.online.net.service.vo.EmployeeDetailsFromGSVO;
import ae.pcfc.cldos.online.net.service.vo.ListOfEmployeeDetailsFromGSVO;

/**
 * 
 * @author arosa
 *
 */
public class CompanyEmployeeDelegateImpl extends BaseDelegate implements CompanyEmployeeDelegate {

	public ListOfEmployeeDetailsFromGSVO getEmployeDetailsList(UserVO userVO, Integer page, Integer perPage){
		return getServiceLocator().getFacadeService(CompanyEmployeeFacade.class).getEmployeDetailsList(userVO, page, perPage);
	}
	
	public ListOfEmployeeDetailsFromGSVO getVisitorsDetailsList(UserVO userVO, Integer page, Integer perPage){
		return getServiceLocator().getFacadeService(CompanyEmployeeFacade.class).getVisitorsDetailsList(userVO, page, perPage);
	}
	
	public boolean validateEmployee(UserVO userVO, String employeeId){
		return getServiceLocator().getFacadeService(CompanyEmployeeFacade.class).validateEmployee(userVO, employeeId);
	}
	
	public EmployeeDetailsFromGSVO getEmployeeDetailsById(UserVO userVO, String employeeId){
		return getServiceLocator().getFacadeService(CompanyEmployeeFacade.class).getEmployeeDetailsById(userVO, employeeId);
	}

	public EmployeeDetailsFromGSVO getVisitorDetailsById(String visitorId,
			UserVO userVO) {
		return getServiceLocator().getFacadeService(CompanyEmployeeFacade.class).getVisitorDetailsById(visitorId, userVO);
	}
}
